import { post, get } from "../axiosDriver"
import {Base} from "./Base";
import {setToFormData} from '@/utils/common'

class WechatApi extends Base{
  constructor() {
    super()
  }
  createOrder(data) {
    let params = setToFormData(data) || {}
    const url = "/renbao/order/createOrder"
    return post(url, params)
  }

  getWxSign(data) {
    let url = "/wx/wx_sign"
    return get(url, data)
  }
}

export default WechatApi.getInstance(WechatApi)


